import axios from '@/lib/axios'
const $API = '/api'

// 判断当前环境
const isDev = data => axios.get(
  `${$API}/environment/isDev`,
  data,
)

// 判断APP是否需要升级
const hasUpdate = data => axios.get(
  `${$API}/environment/hasUpdate`,
  data,
)

export default {
  isDev,
  hasUpdate,
}
